<html>
<head>
	<link href="resource/hdjs/css/bootstrap.min.css" rel="stylesheet">
	<link href="resource/hdjs/css/font-awesome.min.css" rel="stylesheet">
	<script src="resource/hdjs/js/jquery.min.js"></script>
	<script src="resource/hdjs/app/util.js"></script>
	<script src="resource/hdjs/require.js"></script>
	<script src="resource/hdjs/app/config.js"></script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<a class="navbar-brand" href="http://localhost/weixin/index.php?s=admin/entry/index">wfeng</a>
		</div>
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">admin <span class="caret"></span></a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="http://localhost/weixin/index.php?s=admin/entry/quit">退出</a></li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
</nav>
<div class="container">
	<div class="row">
		<div class="col-sm-4">
			<div class="list-group">
				<a href="#" class="list-group-item disabled">
					微信管理
				</a>
				<a href="http://localhost/weixin/index.php?s=admin/message/lists&m=base" class="list-group-item">消息管理</a>
				<a href="http://localhost/weixin/?s=admin/module/entry&a=site/lists&t=admin&m=button&" class="list-group-item">菜单管理</a>
				<a href="http://localhost/weixin/index.php?s=admin/message/lists&m=news" class="list-group-item">图文消息</a>
				<a href="http://localhost/weixin/index.php?s=admin/message/system" class="list-group-item">系统消息</a>
			</div>
			<div class="list-group">
				<a href="#" class="list-group-item disabled">
					素材管理
				</a>
				<a href="http://localhost/weixin/?s=admin/module/entry&a=site/imageLists&t=admin&m=material&" class="list-group-item">图片素材</a>
				<a href="http://localhost/weixin/?s=admin/module/entry&a=site/newsLists&t=admin&m=material&" class="list-group-item">图文素材</a>
			</div>
			<div class="list-group">
				<a href="#" class="list-group-item disabled">
					微官网
				</a>
				<a href="#" class="list-group-item">栏目管理</a>
				<a href="#" class="list-group-item">幻灯片</a>
				<a href="#" class="list-group-item">文章管理</a>
			</div>
		</div>
		<div class="col-sm-8">
			
    <ul class="nav nav-tabs">
        <li class="active"><a href="#tab1">菜单列表</a></li>
        <li><a href="<?php echo site_url('site/post')?>" role="tab">添加菜单</a></li>
    </ul>
    <table class="table table-hover">
    	<thead>
    		<tr>
    			<th>编号</th>
                <th>名称</th>
                <th>状态</th>
                <th>操作</th>
    		</tr>
    	</thead>
    	<tbody>
        <?php if(!empty($data)){foreach ($data as $v){?>
    		<tr>
    			<td><?php echo $v['id']?></td>
                <td><?php echo $v['name']?></td>
                <td>
                    <?php if($v['status']==1){?>
                
                    <span class="label label-success">启用</span>
                        <?php }else{?>
                        <span class="label label-default">未使用</span>
                    
               <?php }?>
                </td>
                <td>
                    <a href="">删除</a>
                    <a href="<?php echo site_url('site/post','',['id'=>$v['id']])?>">编辑</a>
                    <a href="<?php echo site_url('site/push','',['id'=>$v['id']])?>">推送</a>
                </td>
    		</tr>
        <?php }}?>
    	</tbody>
    </table>

		</div>
	</div>
</div>
</body>
</html>
<script>
	require(['bootstrap']);
</script>
